<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Demo</title>
  <!-- 请勿在项目正式环境中引用该 layui.css 地址 -->
  <link href="//unpkg.com/layui@2.9.8/dist/css/layui.css" rel="stylesheet">
</head>
<body>
<table class="layui-table" id="ID-table-demo-init"></table>
  
<!-- 请勿在项目正式环境中引用该 layui.js 地址 -->
<script src="//unpkg.com/layui@2.9.8/dist/layui.js"></script>
<script>
  layui.use(function() {
      var table = layui.table;
      
      table.render({
          elem: '#ID-table-demo-init',
          url: '/ceshi',
          method:'post',
          page:true,
          toolbar:'#template-id',
          lineStyle: 'height: 50px;',
          limit:20,
          parseData: function(res) {
              return {
                  "code": res.code,
                  "msg": res.msg,
                  "count": res.count,
                  "data": res.data
              };
          },
          cols: [
              [ 
              {type: 'checkbox', fixed: 'left'},
                  {field: 'uid', title: 'UID', width:200, sort: true},
                  {field: 'customer_name', title: 'Customer Name', width:200},
                  {field: 'email', title: 'Email', width:250, sort: true},
                  {field: 'ecif_id', title: 'ECIF ID',width:150},
                  {field: 'bind_cif_time', title: 'Bind CIF Time',width:150},
                  {field: 'create_time', title: 'Create Time', sort: true,width:150}
              ]
          ],
      });
  });

  </script>

</body>
</html>